package com.iplant.mes.service.po.print;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.condition.DBCondition;
import com.iplant.base.utils.annotation.field.DBField;
import com.iplant.base.utils.annotation.po.DBBasePO;

/**
 * 出厂试验单编码表
 *
 * @author YouWang·Peng
 * 2024-1-5 21:45:27
 */
@DBBasePO(TableName = "sfc_factory_test_code", Name = false, Active = false, Schemas = DBSchemas.MES,
        CheckName = {"Code", "WorkpieceNos"}, CodeAuto = true, CodePrefix = "HR-JSWJ-{yyyy-MM-dd}-",
        CodeNum = 3)
public class SFCFactoryTestCode extends BasePO {
    /**
     * 工件号
     */
    @DBCondition
    @DBField
    public String WorkpieceNos = "";

    /**
     * 表码
     */
    @DBCondition
    @DBField
    public String TableCode = "";

    public SFCFactoryTestCode() {
    }

    public SFCFactoryTestCode(String workpieceNos) {
        WorkpieceNos = workpieceNos;
    }

    @JsonProperty("WorkpieceNos")
    public String getWorkpieceNos() {
        return WorkpieceNos;
    }

    public void setWorkpieceNos(String workpieceNos) {
        WorkpieceNos = workpieceNos;
    }

    @JsonProperty("TableCode")
    public String getTableCode() {
        return TableCode;
    }

    public void setTableCode(String tableCode) {
        TableCode = tableCode;
    }
}
